import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/news",
  name: "News",
  component: Layout,
  redirect: "/news/list",
  meta: {
    icon: "ep:document",
    title: "资讯管理",
    rank: 8
  },
  children: [
    {
      path: "/news/list",
      name: "NewsManage",
      component: () => import("@/views/news/list/index.vue"),
      meta: {
        icon: "ep:news",
        title: "资讯列表",
        showParent: true
      }
    },
    // {
    //   path: "/news/detail",
    //   name: "NewsCreate",
    //   component: () => import("@/views/news/detail/index.vue"),
    //   meta: {
    //     title: "资讯详情",
    //     showLink: false,
    //     activePath: "/news/detail"
    //   }
    // },
    // {
    //   path: "/content/advert",
    //   name: "AdvertManage",
    //   component: () => import("@/views/content/advert/index.vue"),
    //   meta: {
    //     icon: "ep:picture",
    //     title: "广告管理",
    //     showParent: true
    //   }
    // },
    // {
    //   path: "/content/training",
    //   name: "TrainingManage",
    //   component: () => import("@/views/content/training/index.vue"),
    //   meta: {
    //     icon: "ep:reading",
    //     title: "培训管理",
    //     showParent: true
    //   }
    // },
    // {
    //   path: "/content/training/course",
    //   name: "TrainingCourse",
    //   component: () => import("@/views/content/training/course.vue"),
    //   meta: {
    //     title: "课程管理",
    //     showLink: false,
    //     activePath: "/content/training"
    //   }
    // }
  ]
} satisfies RouteConfigsTable;
